﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E85 RID: 3717
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonActionResult : IMessage<RogueCommonActionResult>, IMessage, IEquatable<RogueCommonActionResult>, IDeepCloneable<RogueCommonActionResult>, IBufferMessage
	{
		// Token: 0x17002F16 RID: 12054
		// (get) Token: 0x0600A680 RID: 42624 RVA: 0x001BFD43 File Offset: 0x001BDF43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonActionResult> Parser
		{
			get
			{
				return RogueCommonActionResult._parser;
			}
		}

		// Token: 0x17002F17 RID: 12055
		// (get) Token: 0x0600A681 RID: 42625 RVA: 0x001BFD4A File Offset: 0x001BDF4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonActionResultReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F18 RID: 12056
		// (get) Token: 0x0600A682 RID: 42626 RVA: 0x001BFD5C File Offset: 0x001BDF5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonActionResult.Descriptor;
			}
		}

		// Token: 0x0600A683 RID: 42627 RVA: 0x001BFD63 File Offset: 0x001BDF63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonActionResult()
		{
		}

		// Token: 0x0600A684 RID: 42628 RVA: 0x001BFD6C File Offset: 0x001BDF6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonActionResult(RogueCommonActionResult other) : this()
		{
			this.rogueAction_ = ((other.rogueAction_ != null) ? other.rogueAction_.Clone() : null);
			this.source_ = other.source_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A685 RID: 42629 RVA: 0x001BFDB8 File Offset: 0x001BDFB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonActionResult Clone()
		{
			return new RogueCommonActionResult(this);
		}

		// Token: 0x17002F19 RID: 12057
		// (get) Token: 0x0600A686 RID: 42630 RVA: 0x001BFDC0 File Offset: 0x001BDFC0
		// (set) Token: 0x0600A687 RID: 42631 RVA: 0x001BFDC8 File Offset: 0x001BDFC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonActionResultData RogueAction
		{
			get
			{
				return this.rogueAction_;
			}
			set
			{
				this.rogueAction_ = value;
			}
		}

		// Token: 0x17002F1A RID: 12058
		// (get) Token: 0x0600A688 RID: 42632 RVA: 0x001BFDD1 File Offset: 0x001BDFD1
		// (set) Token: 0x0600A689 RID: 42633 RVA: 0x001BFDD9 File Offset: 0x001BDFD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonActionResultSourceType Source
		{
			get
			{
				return this.source_;
			}
			set
			{
				this.source_ = value;
			}
		}

		// Token: 0x0600A68A RID: 42634 RVA: 0x001BFDE2 File Offset: 0x001BDFE2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonActionResult);
		}

		// Token: 0x0600A68B RID: 42635 RVA: 0x001BFDF0 File Offset: 0x001BDFF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonActionResult other)
		{
			return other != null && (other == this || (object.Equals(this.RogueAction, other.RogueAction) && this.Source == other.Source && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A68C RID: 42636 RVA: 0x001BFE40 File Offset: 0x001BE040
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueAction_ != null)
			{
				num ^= this.RogueAction.GetHashCode();
			}
			if (this.Source != RogueCommonActionResultSourceType.None)
			{
				num ^= this.Source.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A68D RID: 42637 RVA: 0x001BFE9B File Offset: 0x001BE09B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A68E RID: 42638 RVA: 0x001BFEA3 File Offset: 0x001BE0A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A68F RID: 42639 RVA: 0x001BFEAC File Offset: 0x001BE0AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Source != RogueCommonActionResultSourceType.None)
			{
				output.WriteRawTag(96);
				output.WriteEnum((int)this.Source);
			}
			if (this.rogueAction_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.RogueAction);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A690 RID: 42640 RVA: 0x001BFF08 File Offset: 0x001BE108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueAction_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueAction);
			}
			if (this.Source != RogueCommonActionResultSourceType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Source);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A691 RID: 42641 RVA: 0x001BFF60 File Offset: 0x001BE160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonActionResult other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueAction_ != null)
			{
				if (this.rogueAction_ == null)
				{
					this.RogueAction = new RogueCommonActionResultData();
				}
				this.RogueAction.MergeFrom(other.RogueAction);
			}
			if (other.Source != RogueCommonActionResultSourceType.None)
			{
				this.Source = other.Source;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A692 RID: 42642 RVA: 0x001BFFC8 File Offset: 0x001BE1C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A693 RID: 42643 RVA: 0x001BFFD4 File Offset: 0x001BE1D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.rogueAction_ == null)
						{
							this.RogueAction = new RogueCommonActionResultData();
						}
						input.ReadMessage(this.RogueAction);
					}
				}
				else
				{
					this.Source = (RogueCommonActionResultSourceType)input.ReadEnum();
				}
			}
		}

		// Token: 0x0400439A RID: 17306
		private static readonly MessageParser<RogueCommonActionResult> _parser = new MessageParser<RogueCommonActionResult>(() => new RogueCommonActionResult());

		// Token: 0x0400439B RID: 17307
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400439C RID: 17308
		public const int RogueActionFieldNumber = 13;

		// Token: 0x0400439D RID: 17309
		private RogueCommonActionResultData rogueAction_;

		// Token: 0x0400439E RID: 17310
		public const int SourceFieldNumber = 12;

		// Token: 0x0400439F RID: 17311
		private RogueCommonActionResultSourceType source_;
	}
}
